
#include "bsp_delay.h"

void bsp_delay_ns(uint32_t ns)
{
    while (ns--)
    {
        __asm("nop");
    }
}

void bsp_delay_us(uint32_t us)
{
    while (us--)
    {
        bsp_delay_ns(1000);
    }
}

void bsp_delay(uint32_t ms)
{
    while (ms--)
    {
        bsp_delay_us(1000);
    }
}

void delay(uint32_t count)
{
    for (int i = 0; i < count; ++i)
    {
        __asm("nop");
    }
}
